/*
 * @Descripttion: 
 * @version: 
 * @Author: TT
 * @Date: 2023-10-21 16:39:38
 * @LastEditors: TT
 * @LastEditTime: 2023-10-30 16:49:39
 */

import 'package:hzy_normal_network/hzy_normal_network.dart';

import '../utils/request_tool.dart';
import 'hzy_project_http_config.dart';

class HzyProjectApiUtils {
  /// 获取图片列表
  static Future<HzyNormalResponse> loadImageS({
    int page = 0,
    bool isshowload = false,
    String type = "beauty",
  }) async {
    var res = await request(
      path: HzyProjectHttpConfig.getimages,
      data: {
        "type": type,
        "page": page,
        "size": 10,
      },
      isShowLoad: isshowload,
    );
    return res;
  }

  static Future<HzyNormalResponse> loadGetMiniVideo({
    int page = 0,
    bool isshowload = false,
  }) async {
    var res = await request(
      path: HzyProjectHttpConfig.getMiniVideo,
      data: {
        "page": page,
        "size": 10,
      },
      isShowLoad: isshowload,
    );
    return res;
  }

  /// 请求一言名句列表
  static loadSentences({
    bool showload = false,
  }) async {
    return await request(
      path: HzyProjectHttpConfig.getsentemces,
      isShowLoad: showload,
    );
  }
}
